package xmlcreator;

public class User
{
        private String username;
        private String password;
        private int userid;
        private String email;

	public User(String the_username, String the_password, int the_userid, String the_email)
        {
            this.username = the_username;
            this.password = the_password;
            this.userid = the_userid;
            this.email = the_email;
	}
	public String getUsername()
        {
            return this.username;
	}
	public void setUsername(String the_username)
        {
            this.username = the_username;
	}
	public String getPassword()
        {
            return password;
	}
	public void setPassword(String the_password)
        {
            this.password = the_password;
	}
	public int getUserid()
        {
            return this.userid;
	}
        public void setUserid(int the_userid)
        {
            this.userid = the_userid;
	}
        public String getEmail()
        {
            return this.email;
	}
	public void setEmail(String the_email)
        {
            this.email = the_email;
	}

        @Override
	public String toString()
        {
		StringBuffer sb = new StringBuffer();
		sb.append(" { User Details --");
		sb.append("Username:" + getUsername());
		sb.append(", ");
		sb.append("Password:" + getPassword());
		sb.append(", ");
                sb.append("Password:" + String.valueOf(getUserid()));
		sb.append(", ");
		sb.append("Userid:" + getEmail());
		sb.append(". } \n");

		return sb.toString();
	}
}
